package com.xbongbong.sso.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * IDP用户对应唯一码编辑
 */
@Getter
@Setter
@ToString
public class OauthUserUpdateDTO extends BaseDTO {

    /**
     * 关联userId
     */
    @NotNull(message = "oauthUserId不能为空")
    @NotEmpty(message = "oauthUserId不能为空")
    @Size(max = 50, message = "关联userId长度不可超过50")
    private String oauthUserId;

    /**
     * 唯一码
     */
    @Size(max = 50, message = "唯一码长度不可超过50")
    private String code;
}
